package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.OrderSetting;
import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author chencfgs
 * @date 2019-12-02 15:44
 */
public interface SetmealDao {
    void addSetmeal(Setmeal setmeal);

    void addIds(@Param("id") Integer id, @Param("checkgroupId") Integer checkgroupId);

    Page<Setmeal> findPage(@Param("queryStr") String queryStr);

    void setSetmealAndCheckGroup(Map<String, Integer> map);


    List<Setmeal> findAllSetmeal();


    Setmeal findById(@Param("id") int id);


    OrderSetting findByDate(Date date);

    List<String> findAllSetmealName();

    List<Map<String, Object>> findSetmealCount();

}
